<script setup>
import { usePhotoStore } from '../stores/photo'

const photoStore = usePhotoStore()
</script>

<template>
  <div class="video-view">
    <video 
      :src="photoStore.currentPhoto.url"
      class="video-player"
      controls
      autoplay
      controlsList="nodownload"
      playsinline
      webkit-playsinline
    ></video>
  </div>
</template>

<style scoped>
.video-view {
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
</style>